<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <!-- <a v-bind:href="url">跳转</a> -->
        <a :href="url">跳转</a>
    </div>

    <script type="module">
        import { createApp } from 'https://unpkg.com/vue@3/dist/vue.esm-browser.js'

        createApp({
            data() {
                return {
                    url:'http://www.baidu.com'
                }
            }
        }).mount('#app')
    </script>
</body>

</html>